package com.coolwen.service.major;

import com.coolwen.dao.MajorsMapper;
import com.coolwen.entity.Majors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by nieyu on 2016/9/3.
 */
@Service("majorService")
public class MajorServiceImpl implements MajorService{

    @Autowired
    MajorsMapper MajorMapper;

    @Override
    public int insertSelective(Majors major) {
        return MajorMapper.insertSelective(major);
    }

    @Override
    public List<Majors> selectInfo(String major) {
        return MajorMapper.selectInfo(major);
    }
}
